package org.platform.executor.knowledge;

import com.mc.mic.core.bus.provider.IMicProviderServiceExecutor;
import org.platform.mo.csmo.cmd31005.LoginRequestParam;
import org.platform.mo.csmo.cmd31005.LoginResponseParam;
import org.platform.service.system.LoginServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author FengJie
 * @date 2018/4/23
 */
@Service
public class LoginExecutor implements IMicProviderServiceExecutor<LoginRequestParam, LoginResponseParam> {
    @Autowired
    private LoginServiceImpl service;

    @Override
    public LoginResponseParam doExecute(LoginRequestParam loginRequestParam) {
        return service.login(loginRequestParam);
    }
}
